import request from "@/router/axios"

/*查询产品经理列表*/
export function getProductManager(query) {
    return request({
        url: "/cp/product-employee",
        method: "get",
        params: query
    })
}

/*获取成员列表*/
export function getMembers(query) {
    return request({
        url: "/cp/inheritemployee/employee-query",
        method: "get",
        params: query
    })
}

/*获取产品权限*/
export function getPermission(query) {
    return request({
        url: "/cp/productgroup/dept",
        method: "get",
        params: query
    })
}

/*
* 新增
* */
export function postProductManager(obj) {
    return request({
        url: "/cp/product-employee",
        method: "post",
        data: obj
    })
}
/*
* 修改
* */
export function putProductManager(obj) {
    return request({
        url: "/cp/product-employee",
        method: "put",
        data: obj
    })
}
/*
* 删除
* */
export function deleteProductManager(query) {
    return request({
        url: `/cp/product-employee`,
        method: "delete",
        params: query
    })
}
/*
* 更改授权
* */
export function getProductManagerChange(query) {
    return request({
        url: `/cp/product-employee/change`,
        method: "get",
        params: query
    })
}
